/*
** xread.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Sat Mar 24 02:12:46 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:42:00 2012 christophe labonnemartinez
*/

#include <unistd.h>
#include <stdlib.h>
#include "includes/my.h"

int	xread(const int fd, void *buf, int count)
{
  int	c;

  if ((c = read(fd, buf, count)) <= 0)
    exit(EXIT_FAILURE);
  return (c);
}
